package com.example.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "weixin")
public class Weixin extends BaseEntity implements Cloneable {

	// 通讯工具类型
	public static final Integer TYPE_WEIXIN = 1;// 微信

	public static final Integer TYPE_QQ = 2;// QQ
	
	public static final Integer TYPE_CONNOTATION = 3;// 内涵

	@Column(name = "account")
	private String account;// 账号

	@Column(name = "pwd")
	private String pwd;// 密码

	@Column(name = "name")
	private String name;// 名称

	@Column(name = "sex")
	private Integer sex;// 性别 (0:不限男女 1:男性 2:女性)

	@Column(name = "status")
	private Integer status;// 状态（0：正常 1：停用）

	@Column(name = "exception_status")
	private Integer exceptionStatus;// 异常状态（0：异常 1：图片库未下载）

	@Column(name = "account_attribute")
	private Integer accountAttribute;// 账号属性（1：新号 ；2 ：普通号 3：老号）

	@Column(name = "friend_number")
	private Integer friendNumber;// 好友数量

	@Column(name = "start_count")
	private Integer startCount;// 启动次数

	@Column(name = "add_number")
	private Integer addNumber;// 增加好友数量

	@Column(name = "advert_number")
	private Integer advertNumber;// 发出广告数量

	@Column(name = "work_address")
	private String workAddress;// 工作位置

	@Column(name = "home_address")
	private String homeAddress;// 家庭位置

	@Column(name = "trip_address")
	private String tripAddress;// 出差位置

	@Column(name = "machine_id")
	private Integer machineId;// 设备的主键ID

	@Column(name = "position")
	private Integer position;//

	@Column(name = "type")
	private Integer type = 1;// 通讯工具类型 1：微信 2：QQ

	@Column(name = "bind_phone")
	private String bindPhone;
	
	@Column(name = "mobile")
	private String mobile;

	public Integer getSex() {

		return sex;
	}

	public void setSex(Integer sex) {

		this.sex = sex;
	}



	public String getAccount() {

		return this.account;
	}

	public void setAccount(String account) {

		this.account = account;
	}

	public String getPwd() {

		return this.pwd;
	}

	public void setPwd(String pwd) {

		this.pwd = pwd;
	}

	public String getName() {

		return this.name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public Integer getStatus() {

		return this.status;
	}

	public void setStatus(Integer status) {

		this.status = status;
	}

	public Integer getExceptionStatus() {

		return this.exceptionStatus;
	}

	public void setExceptionStatus(Integer exceptionStatus) {

		this.exceptionStatus = exceptionStatus;
	}

	public Integer getAccountAttribute() {

		return this.accountAttribute;
	}

	public void setAccountAttribute(Integer accountAttribute) {

		this.accountAttribute = accountAttribute;
	}

	public Integer getFriendNumber() {

		return this.friendNumber;
	}

	public void setFriendNumber(Integer friendNumber) {

		this.friendNumber = friendNumber;
	}

	public Integer getStartCount() {

		return this.startCount;
	}

	public void setStartCount(Integer startCount) {

		this.startCount = startCount;
	}

	public Integer getAddNumber() {

		return this.addNumber;
	}

	public void setAddNumber(Integer addNumber) {

		this.addNumber = addNumber;
	}

	public Integer getAdvertNumber() {

		return this.advertNumber;
	}

	public void setAdvertNumber(Integer advertNumber) {

		this.advertNumber = advertNumber;
	}

	public String getWorkAddress() {

		return this.workAddress;
	}

	public void setWorkAddress(String workAddress) {

		this.workAddress = workAddress;
	}

	public String getHomeAddress() {

		return this.homeAddress;
	}

	public void setHomeAddress(String homeAddress) {

		this.homeAddress = homeAddress;
	}

	public String getTripAddress() {

		return this.tripAddress;
	}

	public void setTripAddress(String tripAddress) {

		this.tripAddress = tripAddress;
	}

	public Integer getMachineId() {

		return this.machineId;
	}

	public void setMachineId(Integer machineId) {

		this.machineId = machineId;
	}

	public Integer getPosition() {

		return this.position;
	}

	public void setPosition(Integer position) {

		this.position = position;
	}

	public Integer getType() {

		return type;
	}

	public void setType(Integer type) {

		this.type = type;
	}

	public String getBindPhone() {
		return bindPhone;
	}

	public void setBindPhone(String bindPhone) {
		this.bindPhone = bindPhone;
	}
	
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Object clone() {

		Weixin weixin = null;
		try {
			weixin = (Weixin) super.clone();
		} catch (Exception e) {
			System.out.println(e.toString());
		}
		return weixin;
	}
}
